﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

public partial class Clients_Detail : System.Web.UI.Page
{

    private void PageLoad() {
        String strPage = "";
        try
        {
            strPage = Request.Params["Pro"].ToString().Trim();
        }
        catch
        {
            strPage = "Index";
        }
        try
        {
            int intdex = strPage.IndexOf("/");
            if (intdex != -1)
            {
                strPage = strPage.Substring(0, intdex);
            }
            strPage = Constant.FindUrl(strPage);
            strPage = strPage.Replace("Default", "Index");//News
            strPage = strPage.Replace("News", "tintuc");
            this.phlControl.Controls.Add(this.LoadControl("Control\\" + strPage + ".ascx"));
        }
        catch { }
    }
    protected void Page_Load(object sender, EventArgs e)
    {
        PageLoad();
    }

}